package com.explorati.interview.interview.chapterfive;

import java.util.Comparator;

public class UserComparator implements Comparator {

	@Override
	public int compare(Object arg0, Object arg1) {
		User u1 = (User) arg0;
		User u2 = (User) arg1;
		return u1.getAge() - u2.getAge();
	}

}
